<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div{
            width: 500px;
            height: 500px;
            border: 1px solid #000;
            margin: 100px auto;
            overflow: hidden;
        }
        h1,h2,h3{
            width: 200px;
            height: 50px;
            background: red;
            transform: translateX(-200px);
            /* display: none */
        }
        h1{
            transition: 0.5s 0.5s
        }
        h2{
            transition: 0.5s 1s
        }
        h3{
            transition: 0.5s 1.5s
        }
        div:hover h1,div:hover h2,div:hover h3{
            transform: translateX(0);
            /* display: block */
            /* display 属性不可以使用过渡 */
        }
    </style>
</head>
<body>
    <div>
        <h1>兵哥红浪漫</h1>
        <h2>国文螺丝厂</h2>
        <h3>郝刚洗jio城</h3>
    </div>
</body>
</html>